package Integrity;


public class ResultIDgeneratorSingleton  {
	
	/**
	 * @throws FileNotFoundException 
	 * 
	 */

	private ResultIDgeneratorSingleton ()  {
	}
	
	public static synchronized ResultIDgeneratorSingleton getsingletonObject (){
		if (singletonObject == null){
			singletonObject = new ResultIDgeneratorSingleton();
		}
		return singletonObject;
	}
	public Object clone() throws CloneNotSupportedException {
		throw new CloneNotSupportedException();
	}
	
	synchronized public String getNextResultID() {
		resultID = Long.toString(System.currentTimeMillis()/1000);
		return resultID;
	}
	private String resultID;
	private static ResultIDgeneratorSingleton singletonObject;
}
